package com.sand.feign;

import com.sand.dto.Select.UserSelect;
import com.sand.entity.user.User;
import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("juao-user")
public interface UserFeign {

    @PostMapping("/user/select")
    ResponseResult<User> inquire(@RequestBody UserSelect userSelect);

    //根据id查询用户
    @PostMapping("/user/getById")
    ResponseResult<User> getById(@RequestBody Integer userId);
}
